<div class="bjui-pageHeader">
    <div class="pull-right">
        <button class="btn-default" data-icon="refresh" onclick="$.CurrentNavtab.navtab('refresh')"></button>
    </div>
    <form id="pagerForm" data-toggle="ajaxsearch" data-loadingmask="true" action="{:U('returned')}" method="post">
        <input type="hidden" name="pageSize" value="{:I('param.pageSize')}" />
        <input type="hidden" name="pageCurrent" value="{:I('param.pageCurrent')}" />
        <input type="hidden" name="orderField" value="{:I('param.orderField')}" />
        <input type="hidden" name="orderDirection" value="{:I('param.orderDirection')}" />
        <div class="bjui-searchBar">
            <label>状态:</label>
            <select name="pay_status" data-toggle="selectpicker">
                <option value="">--请选择--</option>
                <option value="0" <if condition="I('pay_status') eq '0'">selected</if>>未处理</option>
                <option value="1" <if condition="I('pay_status') eq '1'">selected</if>>处理失败</option>
                <option value="2" <if condition="I('pay_status') eq '2'">selected</if>>处理通过</option>
            </select>
            <label>订单号:</label>
            <input type="text" name="order_no" value="{:I('order_no')}"/>
            <label>时间区间:</label>
            <input type="text" name="start_time" class="dateStart"  data-toggle="datepicker" style="width: 150px;" value="{:I('start_time')}"/>
            -
            <input type="text" name="end_time" class="dateEnd" data-toggle="datepicker"  style="width: 150px;" value="{:I('end_time')}"/>
            <button type="submit" class="btn-default" data-icon="search">查询</button>
            <a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询 </a>
        </div>
    </form>
</div>
<div class="bjui-pageContent tableContent">
    <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="false">
        <thead>
        <tr>
            <th>订单号</th>
            <th>申请用户名</th>
            <th>退款金额</th>
            <th>退款原因</th>
            <th>申请时间</th>
            <th>状态</th>
            <th width="100">操作</th>
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo">
        <tr>
            <td><a href="javascript:void(0)" onclick="createDialog('{:U("Order/msg",array("id"=>$vo["id"]))}', '订单详细-{$vo.order_no}', 'ordermsg', {width:800, height:500})">{$vo.order_no}</a></td>
            <td>{$vo['name']?$vo['name']:$vo['mobile']}</td>
            <td>{$vo.amount}</td>
            <td>{$vo.reason}</td>
            <td>{$vo.time}</td>
            <td>
                <if condition="$vo.pay_status eq '0'">
                  <span class="text-danger">未处理</span>
                <elseif condition="$vo.pay_status eq '1'"/>
                  <p>审核失败</p>
                  <p>处理人：{$vo.adminname}</p>
                  <p>处理时间：{$vo.dispose_time}</p>
                  <p>备注:{$vo.dispose_idea}</p>
                <else/>
                  <p> 已处理</p>
                  <p>处理人：{$vo.adminname}</p>
                  <p>处理时间：{$vo.dispose_time}</p>
                  <p>备注:{$vo.dispose_idea}</p>
                </if>
                </td>
            <td>
                <button type="button" class="btn-green" onclick="createDialog('{:U("Order/msgthree",array("id"=>$vo["id"]))}', '退款详细', 'returned', {width:700, height:500})">详</button>
               <!--  <a href="{:U('Order/del_refund',array('id'=>$vo['id']))}" class="btn btn-red"  data-type="get" data-toggle="doajax" data-confirm-msg="你确定要删除吗？删除之后就不能恢复啦" >删</a> -->
            </td>
        </tr>
        </volist>
        </tbody>
    </table>
</div>
<include file="Common/footer" ftype="page" />